fix event-based loading of modules and components
fix an issue where null settings could cause problems

A value of `null` in localStorage would be returned even if a default
value was speficied. This could cause such things as infinite request
loop in notifier.
Merge branch 'srsly-broken'