Fix "No comment syntax defined" error at startup

Wait for scratch buffer to be properly initialized