std.regex - fix issue 12105

Handle the case where a lazy qantified loop will have
pessimistic empty "quick test", for example
in front of a lookaround.