minor change in DataFrame::nrows
protecting against R's inconsitencies