don't use OSL_FAIL in new code; in this case use assert instead

Change-Id: I67e96a4a394429045655d33825ce77664ff6dc9b