Fix unwanted attempted background connections

* When stayConnectedInBackground is disabled, Primus was attempting to
  reconnect when in the background and the connection was lost.