Fix PHP Notices from document.parser
Merge pull request #293 from OptimusCrime/develop

Fix PHP Notices from document.parser