Check object status before attempting commit.

Do not attempt if not new or modified.

Fixes #3