Fixes bug in not calling callback with empty input