fixed issue where getSize would throw a runtime exception if it didn't have permission to read a file