Fixed checking of props when props['precommit'] is not set.

Fixed checking of props when props['precommit'] is not set.