Fix for stack overflow bug

Kept reparsing the the same text over and over again because of an issue
related to case-insensitive selects. Only attempts to re-parse the text once
now.