Reviewed-by: darcy
Add extra functional interface check to prevent crash during code generation Reviewed-by: vromero