DS-1503 

Use getAttribute first before attempting to check getHeader for the user value. ShibUseHeaders is not enabled by default and is not recommended in official Shibboleth documentation.