Permalink resolver returns empty response in case on invalide request
Small changes on the upload module