Fixed issue where length property was called on null value