Zentyal/zentyal — pull request #3 by sixstone-qq (2012-11-17 22:29:26+00:00)
Title: Fix event in module uninstallation

+ foreignModelInstance returns undef if foreignModel is
undef. This happens when a module has been uninstalled and it is
referenced in other installed module (events)