fix npe when script content is null