This patch stops mon_relation() from using remote_unit()
when not in a relation hook. This is needed because remote_unit()
uses the JUJU_REMOTE_UNIT environment variable which is only
available in relation hook executions.
Closes-Bug: #1738154
Change-Id: I2ffe5a07d69495aa0af1d1a58a7d45c2813659f2