Correctly handle updating owner id for cases