Fixed error in is.NA function