analytics: fix NPE in BusinessInvoiceDao

After sanitizing the items, it is possible there is no item left on an
invoice. In that case, don't create it in bin.

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