Handle onRmDoc in edge case where pointerIds is undefined