Add type check to max decimial handler. Ignore invalid input.
Simplified type check
Merge pull request #1 from e-conomic/fix-max-decimal-type

Using maxDecimal converts invalid input to NaN