Throw exception on entity not found