Fixed crash when attempting to progress throguh a regex which had ended such as abcd abcdd