Fixes race condition with commenting and replying with ajax.