Adding nil guard on Units admin page

Odd case: master_files.last returns nil, and really should not.
See Unit 29644 for an example.