[Trusty] Fix "GLib: g_ptr_array_insert: assertion 'index_ >= -1' failed" segfaults for gtk+ apps.