[api] fix project relationship creation during maintenance incident creation (issue #364)