fix the handling of PUT requests when a Statement is stored that has an id