Repaired checking for pre-existing crypto device mapping.