Fix S3LocationFilter and S3FilterForm to work without resource context.