Ensure that configuration object cannot be assigned to non-hash value

See https://forums.aws.amazon.com/thread.jspa?threadID=141246&tstart=0