Fix for NPE when there is no RelatesTo.