Fixed bug where split is attempted on a list.

Change-Id: Ib0cc980cd57eaaa0fa1bfc2a467cefc59940dc6a