Fix NPEs when reading configurations containing null numbers