Check that all steps have a non-None name

This fixes #2501