Properly dereference record_data to check that it's set.

Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>