check NULL-termination of keyword arguments