Injecting missing dependency in ReferenceElementController.