Check if the AST reader is attached and if so attach also our listener.