Added a way to trigger success when data has no content

This PR fix #226.