I know this thread is ancient but I eventually saw the same behaviour. I resolved it by:
1) Move device to /Devices class
2) Move back to /Network/Router/Juniper
3) Remodel device
No idea why Shane's d.buildRelations() hack didn't work though.
Cheers,
Jane