Check for undefined model

closes #3013

- also fixes warning about transitionTo being deprecated