[ticket/11230] Add missing last returns to dock block

PHPBB3-11230