Fix possible exception when setting HIDE_RESTRICTED_COMMANDS to True

This would happen when a user who was not allowed to access all commands
would execute the help function. This was a regression caused by
9bb950b5999bc247a9318913d1e82e335a6ba81e
Add 'username' parameter for IRC identity to config template

This documents the added functionality from #256