fix bad call to notify_exception

http://manage.dimagi.com/default.asp?80546