DroidDialog: check for None before convert to int or float
DroidDialog: small change