[#TRUNK-4274] Order.encounter should be required

fix for https://tickets.openmrs.org/browse/TRUNK-4274 | made orders.encounter_id nullable, updated Update OrderService.discontinueOrder() and resolved the failing unit tests