Prevent NaNs from being sent to the Agora server.