Make sure an alias is not used by a static route before delete, ticket #2941