8223140: Clean-up in 'ok_to_convert()'

Simplify logic in function. Added precond/postcond macros.

Reviewed-by: vlivanov, neliasso
4 files changed