[PATCH v12 1/2] vbscript: refactor Mid() error tests