It isn't really known whether chocolate is poisonous to rodents at all. I wouldn't suggest ever feeding it deliberately at all but it's very unlikely to cause problems when accidentally ingested.
Have a look at the chocolate section on this page:
Ontario Hamster Club