This checks for server progs before touching viewmodelforclient as it's apparently not a client field.
This fix is from @Mario