Fix: allow rest_client functions in onreply_route

Credits to Jayesh Nambiar for reporting