KAZOO-3026: Fix edit of device with ip auth

Same as above. Maybe you can create a cb_devices_util.erl module to put these shared functions for cb_devices_v1 and _v2 to use?