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

Fix PHP Notices from document.parser
Merge commit '10539ddc4957a0de163f6187c16a4f89bbb022f7' into bugfix