fixed corner case in diamondsquare that could cause float()+None exception