Fixed passing the application context correctly to avoid NPE.

Fixed CassandraEntityPersister to only read the unsafebytes if not null.