bugfix: if a template model has no docstring, don't try to append it