Don't access unset property in SnakSerializer

This is needed to get our tests compat with PHPUnit 4.3.3

Change-Id: Ic00fecddfea4ef35a12fb756746ce85d8e95c549