FileReader - handle case where native file object is passed in

@tracyli This should fix tests for blackberry.io and blackberry.io.filetransfer