Add basic unclosed HTML tags checking in PHP

This should really have been done with an HTML parser instead of regular
expressions.

Bug: 54909
Change-Id: Ica688adc8593cbf13bdc076b22ccaf31fbd65476