Null-check the rider in PetManager#getPet(Entity)

Previously, if the pet didn't have a rider, PetManager#getPet would
throw a NullPointerException