ensure that warning modal is hidden before the ngIf expression is evaluated

This is an attempt to address #20. I haven't been able to trigger the problem on this branch, but it doesn't happen very frequently for me. @mikezackles could you try it out?