Updated check for current_page

This check now accounts for the emails that are opened in search,label,category locations where the 3rd array item is the email_id