bug 1122339

https://bugzilla.redhat.com/show_bug.cgi?id=1122339
add detection to make sure node_platform is not nil before casecmp
If node_platform is nil I then return with error