Simplify code. Remove redundant casts and checks.

From sources/javadoc:
hudson.model.AbstractProject#getTrigger(Class<T> clazz)
* Gets the specific trigger, or null if the propert is not configured for this job.
They should be commitAuthor and commitAuthorEmail to follow the existing convention and to be more accurate. Sorry for any confusion there.