protect against NA in select_impl. #355