Fixed notification settings hiding when notifications turned off

Fixes an issue where, if notifications are turned off, when returning to
settings page the notifications settings are not hidden.