The default state that the device context is in will provide a defined behavior even if there hasn't been a state set into it. So it will appear that the rasterizer state is working, even if there isn't a state object there yet.
The API that you are calling will directly retrieve any state object that has been bound for the rasterizer, so you will get NULL back unless a state was bound at some point prior to the API call.