for a crash since the list of modifiers was being accessed before testing whether we are actually in editmode (thanks Ben Batt).
for a crash since the list of modifiers was being accessed before testing whether we are actually in editmode (thanks Ben Batt).