Properly dereference record_data to check that it's set.

The original version was checking that the parameter record_data was not NULL, but this is checked at the start of the function. The patched version checks that the call to plist_data_get_val() successfully returned a new buffer.