[ticket/12327] Ajax fix

PHPBB3-12327