Set default program when it's not provided by client, not vice versa (#790)