driftyco/ionic — pull request #2500 by jamm (2014-11-04 13:07:58+00:00)
Title: Prevent 'cannot read' exception

On Android (4.4.4) I'm getting "Cannot read property 'options' of null" each time, 100% reproducible.
This small check will not hurt anyone but will prevent unhandled exception error.