Added another null check for scripts that come back with empty results