Fix crash in rreg deinit