Only attempt file upload to S3 if validation is passed

In some cases files were being uploaded before all validation had taken place.  This ensures file uploads are only attempted after as much validation as possible has passed without error.
Merge pull request #155 from alphagov/only_upload_if_page_is_valid

Only attempt file upload to S3 if validation is passed