Fix the case of using `get_by_id` when there's not state
Fix the case of using `get_by_id` when there's not state

Previous to this commit, if there's no state we would return raw data,
which would break object chaining. Now we check the state one last time
before giving up and returning the raw data because it may have been
populated by methods like `get_by_id` (instead of sync())

Doist/todoist-python