Model.equals method check the passed parameter for null.