The UM.Application.platform property has been removed by someone for quite some time. I don't know why the check was in there, but it doesn't seem needed at all as the property was always undefined