[ticket/11492] Fix issues with log object

PHPBB3-11492