Fixed publish in AWSProvider

As much as I can see, this was an error causing the publishing to break if you cleared the app cache.