FIX: issue #839 (Crash: take/part over tail)