Fix using xml state in REST interface.
Begin arcbot message
This merge request is automatically copied from !1273 (merged) orginally made by @aleksandr.konstantinov
End arcbot message
Fix prefix comparison while looking for arcrest states in job xml.