Fixed a small typo in the chunk.apply function.

Fixed a small typo in the type checking of input in chunk.apply.