Fixed #23460 -- Added literal `%s` support to extra() QuerySets

Added a check when parsing for `%s` sequences if the previous character
is also an `%`, ignore. Without this, there was an ambiguous `StopIteration`
error being raised instead.