Fix NPE when passing null functions