Adding NPE check for when Monkey is running.