Improve handling of malformed U. F. O. layer contents listings.

When reading a U. F. O. that omits a foreground in its layer contents but includes an unused glyphs directory, use the glyphs directory for the foreground.

This addresses part of issue #1828.