Fix CheckRender error with nested render calls

Fixes #484