Fix device info page, when model is empty - error 500

The device info view generate server error 500, when model is empty.
I'd rather move that `and` to the end of previous line (similarly to line 599; think of them as `,` - you don't put them at the beginning of the line :wink:).