Add null check in ideone.js