Fix promise chaining when loading serviceuser details screen

Sometimes generating a HTTP password could seem to be stuck. In such
cases the request was never sent because the pluginRestApi object was
null. This happened, because the relevant permission check was done
too late due to improper promise chaining.

Change-Id: I620525f520c62271cfc2009c477d8f2f07ade75a
1 file changed