Update CustomTable.java

Add null checks to avoid a strange situation with Null Pointer Exceptions.

We triggered this somehow, with code that worked with FilterTable 0.9.9.v7, but broke with 0.9.11.v7.

These null checks protect against the issue.