Pull request to fix bug 5846

calling tail on an empty frame threw an exception.   In addition, df.tail(0) returns self without indexing.