fix($ionicModal): do not inherit has-header etc from parent scope

Closes #1191