Fix error 500 on labhealth/device/<pk>
Fix error 500 on labhealth/device/<pk>

Change-Id: I9284537c494dba4912b59a51e134e9abe2957589

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server