Proposed fix for: FS#2781 - Some remote functions returning NULL instead of affected/deleted elements count