add support for nulls in combineTemplate (fixes #163)