usb-mtp: Add some NULL checks for issues pointed out by coverity