rustc: Check for null before dropping ~objects. #5192
auto merge of #6705 : brson/rust/issue-5192, r=catamorphism

r? @catamorphism 

This could probably refactored to more closely mirror the code for `@objects`, but I'm not inclined to do so.