fixes KeyError in tasks.getFile in case of missing headers [finishes #79409644]