[BUG] Handle exception on empty form submit. (Improvements)

We did some optimisations for this BUG.