EZP-23366 - Correct active view service value not set correctly in the PlatformUI app

https://jira.ez.no/browse/EZP-23366

Corrected the value of active view service when the app is loading a new view and its service.
the problem was, I was trying to set ``activeViewService`` before it was even initialized. Mostly, active services are set in ``else if`` block.