I guess that you want to avoid doing something when cardstate is not ready.
Then you could just store the cardstate in a variable and do nothing in the observer callback, couldn't you?