fixes nil to string conversion when AWS key not set
Merge pull request #1293 from nimishgautam/master

fixes nil to string conversion when AWS key not set