Fixed sending notifications to everyone

The function to send notifications to all users was broken, this fixes
it and running with the test data.

Change-Id: I65a50cf920637c5b843c218432a1587fb39d13c6