Catch database lookup error when adding a system to a group

Bug: 967684