Updated fix for OPENAM-3864, review CR-3798

git-svn-id: https://svn.forgerock.org/openam/trunk/openam@9371 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
OPENAM-1978 - Missed code review comment

git-svn-id: https://svn.forgerock.org/openam/trunk/openam@9373 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
OPENAM-4114, CR-3828: Fixed uncaught exception when trying to access the idm/EndUser page.

git-svn-id: https://svn.forgerock.org/openam/trunk/openam@9374 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
OPENAM-4109: Revert R9126

git-svn-id: https://svn.forgerock.org/openam/trunk/openam@9375 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
AME-3607: CR-3841: Example javascript

git-svn-id: https://svn.forgerock.org/openam/trunk/openam@9381 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d