Changed from logging to raising an error - it doesn't make much sense to just warn and have the caller fail in trying to get transitions from nil.