Added small security check to CreateDevice Detour.