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

PHPBB3-11387
Merge remote-tracking branch 'EXreaction/ticket/11387' into develop

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