Revert "Issue #2195957 by Wim Leers, alexpott: Fixed Only install profile configuration when installing that profile, not when enabling associated modules."

This reverts commit 5ab43b6a1a02ff882578a9b77e2f5ced46a9e2d8.
Issue #2195957 by alexpott, tagini: Fixed Only install profile configuration when installing that profile, not when enabling associated modules.
Issue #2324791 by Michael Hodge Jr, ParisLiakos: Remove watchdog().