Fixed an edge case where an array that didn't have a large enough allocation was incorrectly being treated as if it did.