Add check for np.ma.nomask in NDData mask setter.

Closes #2784