Fix - AngularJs error when opening a form without an entity picker