Not realy an issue here, as the function will just return an invalid picture in that case, which will just cause the thread to do a dry loop run, ending up in this function again.
This behaviour is important, as stopping the thread relies on the behaviour of this functions, that it returns whenver the condvar is signaled.