[Mod]: Make the custom $modal compatible w/ 0.6.0

This is a supplementary patch to the customized $modal. The upgrade
to UI Bootstrap v0.6.0 introduces a new test case, which is not
compatible with the customized $modal. This commit is about making that test
case compatible.