Tweak to support really big merge requests

Related to:

https://gitlab.com/gitlab-org/gitlab-ce/issues/295#note_160691

Fix based on Matthieu Vachon suggestion.