Fixed issue where length property was called on null value
Merge pull request #272 from dannykopping/master

Fixed issue where "length" property is called on null value