Don't write to generated files if no elements requiring code generation ...

...are found.

This will solve #15