Using undefined instead of null when checking prerenderReady