resampleByLength no longer crashes when length = 0.