Fix NPE when creating region and y value is not specified before x and z