Return None from get_graphics_metadata in headless compositor

This fixes `servo -z`.

Alternative to #1338.