Fix wrong variable in RestfulEntityBase::process()