Error changing saving theme settings if "allow member to select theme" was disabled

Signed-off-by: emanuele <emanuele45@gmail.com>
javascript values could even be zero! :P

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #511 from emanuele45/quick_fix

Quick fix