Support: The 46-year-old told his co-stars that he was having an issue investigated and was inspired by Hugh Jackman (picturted) who is an outspoken advocate for skin cancer checks