artwork: crash fix when file mask is empty (bug #1177)