Adds a checking for a null value of attribute being parsed