Fixed bug#10508 - (Agent|Customer)TicketProcess javascript errors when uploading attachments/having server errors.
Tidied.
Merge remote-tracking branch 'upstream/master' into otrs-master