Fixed NPE if renderer has not been set yet