Fix nullpointer in RootResourceDescriptor.

When endpoints were null, it produced a NullPointer in RootResourceDescriptor.getEndpoints()