Fix form validation in user availability edit page.

Nice catch with the exception! This is used only in reports and in unavailability form. By doing this you are breaking the form functionality for a new report. I would suggest to revert it the way it was before, to keep the report form clean and tackle the problem for the unavailability form.