Various small fixes

Some suggestions of mine:
All emails should be stored in lower case. Furthermore, I remove the "Skipping server" debug output as it produces far too many messages as getIdentities is called fairly often.

I think the null check in misc.js should be unnecessary by now, so I removed that, too.