Handle non-existent sites in redirect middleware