Fixed bug when Posts2Posts plugin is not active.