red-brick: Check if result is empty in script callbacks.