Fix crash when --version is not specified

Follows I07b158ca4

Change-Id: I514ef85d6e093f12435f07b028cc205526de24af