Fix modalInstance controller call when minified on build server