Fix some problems with <title> element validation.