fixed clashes with autogenerated IDs

I had an issue when using clientscript packages with compressors like `mikehaertl/packagecompressor`.
The counter for Yii widgets `yw` was reset to 0 and therefore the panel IDs were not unique and could not be opened.

The patch simply generates another prefix if autoGenerate is `true`.