Check if pipeline is nil before merging
Fix for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4443/#note_12614371
@DouweM Should this be in RC1? I think so
Fix for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4443/#note_12614371
@DouweM Should this be in RC1? I think so