don't try to copy NULL appdata (bug #4422)