mozilla-b2g/gaia — pull request #5931 by lissyx (2012-10-22 11:54:12+00:00)
Title: fix: Do not delete invalid contacts groups

Somehow a contacts database can contains data that do not please the
current code, with 'start' being 1 and length being 0. This trigger the
following error:

E/GeckoConsole( 1084): [JavaScript Error: "NS_ERROR_INVALID_POINTER:
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)
[nsIDOMHTMLOListElement.removeChild]" {file:
"app://communications.gaiamobile.org/contacts/js/contacts_list.js" line:
291}]

And it also makes the loading ovrlay never disappearing. This change
fixes the behavior.