Fixed|ServerSystem: Avoid redundant deinitialization

Also, if deinitializing at app destruction time, check that the
ServerApp still exists. (Normally doesn't happen as the ServerSystem
is stopped when the server is closing.)