DelegateNotifications: Fix an issue with the bitmask

Hi, 

I've just fixed an issue with the test of the bitmask values. 

In ruby, 0 is seen as true for the conditions :-)