Catch HTTPError properly in trailer search. fix #3388