[4.2] Filtered UploadedFile instances before store old input in the session

This will ensure that no exception are thrown when you save old inputs containing files.