Revert "Fix crash reported by Simooon on #Slic3r."

It turns out this helped on the version of stable I was using
but not on master.

This reverts commit 8df6e2d930e3a295ed1447390988c9a08f07a949.