Fix add question bug (checking for form submission before environment ready)