When platform has not been detected perl_pkg is nil. Do not try to install perl package

I have wrapper-cookbook with tests. Each time I run chefspec without providing platform cookbook fails, because node['apache']['perl_pkg'] is not set, but used.