Fix to Entity->_getIdProperty() method.