allow explicitly null registration for getState