fix js check null and empty value check