Raise a BadRequest when no plan is provided

A BadRequest translates into a 400.

Change-Id: Ia6a1ee27e69b8ab15abe4e98be6d5930cd8023b4
Fixes-bug: #1316345
Merge "Raise a BadRequest when no plan is provided"