restore: improve restored_query_type result checking
restore: improve restored_query_type result checking

libimobiledevice/libimobiledevice,patweb/libimobiledevice,kalev/libimobiledevice,Tatsh/libimobiledevice,libimobiledevice-win32/libimobiledevice,libimobiledevice/libimobiledevice,Tatsh/libimobiledevice,libimobiledevice-win32/libimobiledevice,kalev/libimobiledevice,upbit/libimobiledevice,Tatsh/libimobiledevice,Tatsh/libimobiledevice,upbit/libimobiledevice,patweb/libimobiledevice,upbit/libimobiledevice,libimobiledevice-win32/libimobiledevice,kalev/libimobiledevice,libimobiledevice-win32/libimobiledevice,patweb/libimobiledevice