Let StatefulWidget throw an error when using the selector failed

Since StatefulWidget can't do much without having found a DOM element upon instantiation, it would make debugging easier to let it throw an explicit error when the passed selector didn't work.