Fix null-pointer exception for Number and Integer fields rendered in display-only mode

This fixes a null-pointer problem that occurs in IntegerField._validateNumber and NumberField._validateNumber if the field is render in display-only mode. The problem is currently exposed in Example 4 on http://www.alpacajs.org/examples/components/fields/integer-field.html.