Avoid setting location if nil is returned by rest_delete.