Checked one more possible error case in SetRasterProperties. Deleted some commented code.