Do not output references to empty styles. Fixes #244