JBTM-1522 update to check recovery manager until it is not null