Update parser.js

Get rid of error stopping the parser for elements that doesn't have a parent with visible defined.
Update parser.js
Merge pull request #1413 from asturur/parent.attribute

Stop error on parentAttributes.visible