restapi: NPE in setJobLink flow

Action should be initialized prior to setting a job id.

Change-Id: Iadfd502de54cd34d9cc5e4dc70d4bd6f52f83cf7
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>