fixes nil to string conversion when AWS key not set