Changed the way of handling error messages for maintenance events.

[#75571682]
Merge pull request #137 from shellycloud/75571682-update-maintenance-raises-exception-when-there-is-no-maintenances

Changed the way of handling error messages for maintenance events.