new test reproducing #685
fix #685: check for null value
Merge pull request #686 from wordpress-mobile/issue/685-wphtml-npe

fixes #685