I had that line of code in there but with the relative path specified. Changing the path to absolute forced the favicon to appear even when logged out.
Upon further inspection of the issue and courteous help from @AndyB I determined the real cause of the problem. My "favicon.icon" was in the wrong directory, namely "root/community". Once I moved it to the root directory the problem disappeared.