Check for null on moving platform script