Added exception handling in route for merged recipe search