Fix for undefined method `-' for nil:NilClass

This warning was issued by the content guesser trying to act on empty
tables. This fixes #1418 

@Kartones can you please review? thanks in advance!