Add onempty attribute so the dev can handle empty results. Intended to solve #16

This should solve the issue. Note that I didn't call it `onerror`, but `onempty`, as the problem is actually not an error, but an empty (unexpected) result.