KmsHttpPost: Read data only if it has a filename attribute

Change-Id: I207f6acf134fd51c6e7cbdab4439f738ecead249