Fix potential segfault due to a race condition

... or something like that
Fix removing of empty film rolls