Fix stupid isCodeRangeValid bug.

Dear god, how long has this been here?