Avoids an ugly error upon sharing withouth first been authenticated.