[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.
Merge pull request #287 from alexshalamov/fix_file_attributes

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