3380e: fix trap plugin to prevent infinite loop

http://code.google.com/p/otwarchive/issues/detail?id=3380
http://code.google.com/p/otwarchive/issues/detail?id=2928