Issue #3304488 by RandalV, DamienMcKenna: metatag_get_route_entity() does not check if the entity parameter is an actual entity.