utils: Check if nightMode module is enabled before styling

Fixes #1433. Night mode should not be enabled if the module is disabled.