Sometimes we are receiving null data on getRunnableEvents due to some other reason. I have no idea why that is happening. Probably some check inside the function will help the engine running for other workflow execution requests.
The data variable becomes null sometimes. Refer: