Favicon npe fix (Fixes #985)

Fix a NPE that happened when no favicon was present.

Caused by me not reading the specification of TypeAdapter, sorry.