Don't crash if replicate_on_write is null on a table

JAVA-254 #fixes