[ticket/13263] Use first style id instead of running array_pop()

PHPBB3-13263