Makes getAccount work safely.