Added a call of a callback function in case when no registration id were given.

In case of no registration ids were passed to the 'send' function, the callback was not called, and therefore all the processing depending on callback getting called was stopped.