Fixed error checking for getting meta from tempfile.