When disabling surfaces in Cycles' Filter panel and then baking a texture Blender crashes.
The baking data references the surface triangles,so not syncing surfaces
leads to a crash. Surfaces are the only objects that support baking
so having surfaces disabled makes no sense and is probably not what the
user meant to do. So when baking, just ignore this filter setting and sync
surfaces anyway.