Fix CheckRender error with nested render calls

Fixes #484
Merge pull request #485 from presidentbeef/fix_process_render_error

Fix CheckRender error with nested render calls