MIFOSX-1187 - added null checks before compare with min and max values
Merge pull request #913 from pramodn02/MIFOSX-1187

MIFOSX-1187 - added null checks before compare with min and max values