choices_start/end variables wrapped in if statements

wrap choices_start/end variables to better handle TEMPLATE_STRING_IF_VALID is not set during testing of a project