Fix euclid_norm() error handling when matrix is not on device

The error handling of `euclid_norm()` in `cudamat.cu` was incorrect. This changes the error handling to match the implementation in `manhattan_norm()`.