Added check for NULL textentry input, and a typecast to make cc65 happy
Added check for NULL textentry input, and a typecast to make cc65 happy

arurke/contiki,arurke/contiki,bluerover/6lbr,bluerover/6lbr,MohamedSeliem/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,arurke/contiki,bluerover/6lbr,MohamedSeliem/contiki,bluerover/6lbr,bluerover/6lbr,arurke/contiki,bluerover/6lbr,MohamedSeliem/contiki,bluerover/6lbr,arurke/contiki,arurke/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,arurke/contiki