[OE-3378] fixed bug where trying to print the emergency list from the theatre diary triggers a crash in the ajax request.
[OE-3367] fixed syntax error
Merge branch 'master' into release/1.4

Conflicts:
	controllers/TheatreDiaryController.php
	models/Element_OphTrOperationbooking_Operation.php
Merge branch 'release/1.4' of github.com:openeyes/OphTrOperationbooking into release/1.4