Fixed schema reference bug

This should fix
https://code.google.com/p/daisy-pipeline/issues/detail?id=254

Though I'm not sure how to reproduce it - simple CLI syntax errors
don't seem to produce these errors.