Fixed in rev#98382 by checking that library target is initialized before accessing it. (The library target is initialized when the library is enabled. If the library is disabled by a condition, its target stays void.)