Issue #1233448 by clemens.tolboom: Fixed Error on admin/structure/relation/generate when no relation types defined yet.