Fix undefined attribute handling

As-per the jade documentation, attributes whose value is a variable
that is undefined, the attribute is now skipped for the outputs which
support it. Tornado and Django throw NameErrors whilst rendering so
this has no impact on them.