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

Closes #2784
Added changelog entry for #2784
Add regression test for #2784
Merge pull request #2796 from AnthonyHorton/bugfix-for-issue-2784

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