Add fallback for null gradient values from client
Fix wrong color of lines with facts on load