Adding another check for runCache in function check()

checking if undefined OR null

runCache is actually set to null above
Merge pull request #5 from nicolqs/patch-1

Adding another check for runCache in function check()