[PATCH] schedsvc/tests: Avoid a crash in a SchRpcRegisterTask test