Made relation getters return None on bad relations.

Bit leery about making this more implicit, but it should give an error
in a situation where None really isn't acceptable, and it seems like a
fairly comomn case.