fix NPE when using CREATE/DROP FUNCTION without current keyspace