Open in web ide doesn't work for empty merge request

The Web IDE opens in the review mode but can't be used if the MR is empty.

This prevents the Web IDE being usable for closing an issue from the Web IDE.

Steps to reproduce

  1. Create an issue
  2. Create a merge request and branch from issue
  3. From empty merge request click Open in Web IDE

What is the current bug behavior?

Interface gets stuck on empty web ide with skeleton loader

What is the expected correct behavior?

Interface should load correctly, project should be editable.

Relevant logs and/or screenshots

20180620_screenshot_1

Output of checks

This bug happens on GitLab.com

Possible fixes

Assignee Loading
Time tracking Loading