* src/gig.cpp: fixed crash on patches which did not have a sample assigned to their region(s) or dimension region(s) (patch by Andreas Persson)