Create an exercise only if it has a name.