fix undefined check to not be backwards
fix undefined check to not be backwards

NathaTerrien/Natha-roll20-api-scripts,shdwjk/roll20-api-scripts,shdwjk/roll20-api-scripts,Cazra/roll20-api-scripts,Cazra/roll20-api-scripts,shdwjk/roll20-api-scripts,Cazra/roll20-api-scripts,NathaTerrien/Natha-roll20-api-scripts,Roll20/roll20-api-scripts,Roll20/roll20-api-scripts,Roll20/roll20-api-scripts