fix issue: NPE if passing null to RythmEngine.render()