utils: Check if nightMode module is enabled before styling

Fixes #1433. Night mode should not be enabled if the module is disabled.
hrm is there a chance of a race condition here? isEnabled() requires module prefs to have returned which is async, and getDocHTML gets called early to avoid problems with async delays...