When removed task is the last existing (not-null) task in the context, the underlying context will be removed too.

fixes #183