resource: handle bad data passed as id
release 0.3.4