rts: Fix use of #if

Authored by bgamari on Sep 6 2017, 8:48 AM.