Fix form signature check failing when all fields are OK

This fixes a case where form signature checking would wrongly fail even though all fields are present and have not changed. Fixes 2. of issue #998.