fix(output): terminate function early if attributes are not passed along

Refs #6458