[Tizen] Fix for File.length and File.fileSize properties

File.length should be undefined for files and defined for directories,
while fileSize should be only available for regular files.