loop: fix crash when using unassigned loop device