Added check for trying to write empty metadata objs.
Merge branch 'test' of github.com:project-fifo/jingles into test