CheckUser blindly passes result of $wgRequest->getHeader( 'User-Agent' ) to the database.
If no user-agent is passed, $wgRequest->getHeader( 'User-Agent' ) is false. MariaDB stores that boolean as a zero.
We should transform that false to an empty string, which will cause cuc_agent to have more understandable data.