fix segfaults

When a method is declared with the `METH_NOARGS` flag, its second argument is set to NULL. So dereferencing it causes a segfault. See https://github.com/victorliu/S4/issues/6

I tested on my computer: As expected, without this commit, all three of these methods segfault, and this commit fixes all three.