Make sure has_relationfield_installed flag is always set. Otherwise the code will fail if dexterity is not installed.