fix [#34125] Crash when bake margin = 0
regression since 2.65, just missing NULL check.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54343 954f8c5b-7b00-dc11-b283-0030488c597c