Revert "Remove unnecessary content_scripts"

This reverts commit 682f10c1b809ca02619a59fd4e0946dd5948060c.
Fix confition to check sender

so sender.tab is optional.

http://developer.chrome.com/extensions/runtime.html#type-MessageSender