COOK-3295 - Fix openjdk_path function in helper library

helpers.rb no longer returns nil if the platform_family doesn't match 'debian', 'rhea', 'fedora', or 'smartos'.

This is useful when writing chefspec tests for cookbooks that include_recipe java::default, as there may be no declared platform in a spec test.