fix(rest/process): determine correct mediatype for process diagram

- if filename is `null` use default mediatype (`application/octet-stream`)
- convert filename to lowercase to determine mediatype
- move mediatype test into separate test
- add test if filename is `null`

related to #CAM-1280