This prevents eternal loops. It prints error message in console. Note that the Shader nodes dont need this, since they're just executed in presorted order. The compositing nodes use threading, with a call asking for the next job... if this includes cyclic nodes, the 'next job' will always return NULL.