Fixed updateRegisteredApplication() invocation in ApplicationController,...

... parameter ordering was incorrect.