Correctly detect binary fields during theme import (see #6852)