(bug 46303) Call to a member function getUserCaseDBKey() on a non-object

Change-Id: Ie14d06f783619456fd4ce7fa85ab8861d99ffa51