code was partially in and partially out of the else clause but was anyway in both cases executed. So share the same block for the code.
fix comment
we should not output errors just throw them and http://trac.dojotoolkit.org/ticket/16751 must be fixed to get the correct reporting
some cleanups + add a new error test on missing store
Merge remote-tracking branch 'upstream/master'
Merge pull request #166 from cjolif/master

Various cleanups, add one more error tests and remove code not needed anymore after http://bugs.dojotoolkit.org/ticket/16751 has been fixed