Add empty text check for first child of pre in innerHTML.(fixes #1743)
Add test
auto merge of #1759 : lpy/servo/issue1743, r=Ms2ger

see #1743