fixed issue with null value in CRUD controller findModel()