Adds State#getOriginalObjectOrNull and changes #getLabel to use it to avoid IllegalStateException.