Don't allow parent modal to close if child modal is present 

Fixes #29