Quick fix to not crash when corrupt relationships are found. Logs
corrupt ones to system out at the moment, but should do something
smarter in future