Fix small bug in presence_based_delivery implementation

Small fix to allow presence based delivery when subscribing without a resource.