[omx] Fix compile warning after PR 5348.

I actually think that code is not even executed, so this doesn't only fixing the warning.