CRM-14629: fix query to enable cancel/update on recurring contribution

fix query to enable cancel/update on recurring contribution if no associated contributions are present