Fix batch_size call

If .to_f isn’t called, (notifications.size / num_dispatcher_loops) can
be 0, which breaks in_groups_of