Add truth check on index 0 of related_rs cache

Prior to ce55688, the related_rs cache loading mechanism only conditionally
loaded if the base rs cache was defined. After this was removed an empty arrayref
could potentially be set as the cache, causing false cache hits. This commit ensures
the cache is only set when there are actual cache results.