rtc: sysfs: fix NULL check in rtc_add_groups()