adjust rollback logic, check for invalid rid before attempting any rollback. previously, giving an invalid rid would rollback as far as possible (!)
REST API testing: adviser rollback functionality