Fix createSnapshotFor when it is given a EngineWrapper.