Add a guard before creating mnesia_dr