Fixed a bug that occurs when a state change happens but no previous statuses exist.
Fixed a bug that occurs when a state change happens but no previous statuses exist.

brev/nupic.tools,rhyolight/nupic.tools,numenta/nupic.tools,numenta/nupic.tools,brev/nupic.tools,rhyolight/nupic.tools