return correct id when passed as `non-integer`

solves issue #13052