mozilla/addon-sdk — pull request #712 by ZER0 (2013-01-04 15:33:13+00:00)
Title: Removed the setTimeout in favour of a tab's ready event.

If it is a timing issue, that should fix the problem.