Added check for empty string in addition to existing null check before attempting to set platform to prevent exception.
Fix for bug 2823072.
Authored by: jimwinston 2009-08-24
Parent: [r546]
Child: [r548]