scripts: fix empty function causing an error