Fix small bug in presence_based_delivery implementation
Merge pull request #195 from Iperity/master

Fix small bug in presence_based_delivery implementation