Fix OutputPageBeforeHtmlRegisterConfig handler return value

Change-Id: Ieba1a68dda2b0470b4158bba4a1f7996a1e1a82b
(cherry picked from commit 642bf4d3a2802fef47cc920d57dd48b5d1cd7af5)