FIXES bug regarding handling of next nodes.
FIXES bug regarding handling of next nodes.

* This commit fixes a bug that was caused by wrong handling of text
  nodes without any text. A new template was added that matches
  empty next nodes and processes them correctly.

IRT-Open-Source/scf