bus/fslmc: fix error handling in device iterator