Fix exception being thrown when using PUT to create