Code coverage Travis hook for coveralls.
Throw error when getting or setting primary attribute if primary key is undefined.