fix syntax error check in 'bitmap'

closes PR 14763