Update ngModalProvider.js

minor bug fix