usb: gadget: at91_udc: move the dereference below the NULL test