[ticket/11387] Log module added only after it has been added

http://tracker.phpbb.com/browse/PHPBB3-11387