Fix undefined method `empty?` when aws keys not set

key['access_key_id'] and key['secret_access_key'], when it it empty, return nil