Fixed NPE when getting uploaded metadata.