How do I check if Tasker is the application in focus using a Tasker profile?
The developer of Tasker has specifically excluded Tasker itself from showing up in the Applications list.  He cites his reason in the Tasker Why...? section of his website.

http://tasker.dinglisch.net/userguide/en/faqs/faq-why.html#d