WFLY-3718 UT005023: Exception handling request to /frontend/images/favicon.ico: java.lang.NullPointerException

https://issues.jboss.org/browse/WFLY-3718

Adds some missing null checks.