Fix NPE on UpdateTestCaseWithDependencies servlet

Related to #385