Fix broken rdbWriteRaw() return value check in rdb.c.

Thanks to @PhoneLi for reporting.