[omx] Fix compile warning.

This fixes commit 77778e4e1ef549455574f765ff6252fbb278effa.
Merge pull request #5452 from anaconda/fix-pr5348

[omx] Fix compile warning after PR 5348.