Make sure widget is initialized before checking if it is GL accelerated