Added null-checks when accessing mailboxes, mails and contacts.
Removed code that wasn't needed when adding new items in bound arrays.
Renamed SqlResult to QueryResultRows after refactoring in Starcounter.