#20827 Fixed bug with listeners stopping on editing controller or exiting from rails console