Added assertion to check for mask len >= self._stimulusThreshold in
_raisePermanenceToThreshold as per issue #1322