[ticket/12056] Fix failure due to "Creating default object from empty va...

...lue".

PHPBB3-12056

http://tracker.phpbb.com/browse/PHPBB3-12056