Fixes poll end time if form is reloaded because of any error