Handle 'null' upper ranges without writing 'null' into pom.xml