res_ari: Add "module loaded" check to ari stubs