Properly handle a default constructed edm::RefToBase

Several methods of edm::RefToBase assumed holder_ was properly
set but that is not the case for the default constructor. These methods
are now properly protected against a null pointer.