Checked for null client entity. Fixes #21

Note #21 may be irrelevant due to decrease of sync packets being thrown
around.