Add IsNull function for Datum to simplify null check.
* *: unify error format in table, server and xapi package * terror: remove duplicated code