analytics: fix tenant_record_id when multi-tenancy is off

The convention is to return 0 in this case, not NULL.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>