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.
Thanks, it should change then. Could I suggest "Build when a Pull Request is opened in Github" to better match the format of the others?