Adjusted models and utility functions to handle cases where an Item has no bags or one bag, and where projects and collections have no items. Added tests as well. Closes #63