Fixed reading of uninitialized state
Removed debug line
Merge pull request #59 from 28msec/fix-profile-state

Fixed reading of uninitialized state