fixes nil to string conversion when AWS key not set

Implicit nil to string conversion errors kept appearing when trying to view a thread if no AWS secret key was set.