Added missing null ptr check in getRasterBand