That is what I did.  

I could have implemented a separate nanstd function, but decided not to.  However, I felt that it was possible somebody might think that a separate nanstd is a good idea, so I just mentioned it as a possible alternative to my approach.