Prevent _dbpostscript() from running twice for widgets with dojox/mvc/_Controller mixed in, fixes #17439.

It happened because the code runs an unnecessary path in that condition.