Bugfix - extra clause

Accidently left an if statement that meant that no output would be generated.
Merge pull request #131 from Sneddo/bugfix-plugin105

Bugfix - extra clause