Fixed NPE
Log JSF errors as well