Fixed null pointer errors in route legs and aisinfopanel