fixed broken deliveries in the api for research courses

there was a bug in the api combine_programme method which meant only taught courses would ever have any deliveries...