extent pipe() to return original task when input undefined