Fix $isNew to be aware of $idAttribute

Currently if one uses ``$idAttribute`` other than ``id`` and tries to save model, the request will be ``POST`` not ``PUT`` because of ``$isNew()`` returning ``true``. This PR fixes the emptiness check for model's id.