Fix traceback when create an operation without a name or option

Resolves: rhbz#902460