Fix form validation in user availability edit page.

If we keep the previous version we get the following error:
``uncaught exception: Unexpected literal at position 2``

This breaks any other client side functionality, for example the replacement rep selection.