NOJIRA Fix improper representation_id; improve error handling