Update AmazonS3Resolver.php

Check for base url before stripping it.