Some funcs should return null on error.

They were expected to return the empty string previously. The spec
requires returning null, though.

We might want to backport this to previous snapshots, but I only fix trunk here.