In case we receive a flush event before having our caps set, we will end up trying to create a theora encoder even though we are not ready. Avoid that situation making sure we are initialized before accepting to be flushed. https://bugzilla.gnome.org/show_bug.cgi?id=709858