avoid displaying undefined in version dropdown