Fix view file API call.

File detail lookups via MD5 and SHA256 failed due to improperly
calling [0] on a sample object. File detail lookups via task ID
failed when task ID involved a sample previously submitted. Both
now work as intended.