Update parser.js

Get rid of error stopping the parser for elements that doesn't have a parent with visible defined.