Job action in dropdown in pipelines index page is triggering an error in the console

Summary

When we click in the action icon, an error is triggered regarding the target:

Screen_Shot_2017-02-01_at_20.48.15

  • There is another error in the console that is already fixed in this MR: !8844 (merged)

Steps to reproduce

  1. Open pipelines page
  2. Open console
  3. Click in one stage's dropdown
  4. Click in the action icon