Fix bug for [] with no errors.

In makes more sense to return nil rather than '' here so that
we don't have to length check the error.