Fixed NullPointerException during writing capabilities, when no themes are configured