fixed case when no previous relations where found
Merge branch 'previous-relation-wrapper-fix' into relational-storage