Prevent hidden fields to be cleared out

This fixes the issue of clearing hidden fields in forms after submit.