Protection against creating invalid keyword arguments.