Fixing Intent null check, improving logging for data sending