Avoid error messages for empty plots