RPL null pointer handling

Catch some RPL null pointers before they can do any harm.