Unknown relationship types in a dense node should not cause relationship loading
(cherry picked from commit 5116cd0)