skips things if items returns None from templating
fixes incorrectly successful tests using undefined var, now it is
defined