[BUG] Fix erratic call to getAttribute on command options