made CodeRule null-safe in case there is no metaannotation