Fix a crash with mixed case models

The sails.models object keys are lower case, and Reference Model may be
mixed case