Fix NoMethodError masking a problem on Travis.