Handle bad syntax gracefully in "--range" code