[PLAT-3031] Correct logic to check whether a security is OTC