fixed wrong behaviour of preventDup parameter
Adjust preventDup according to Ext.History