encapsulate extension error reading with version check to fix issue #27

This is a solution for issue #27. It checks for the version of the phpredis module and only clears last error if version is greater or equal than 2.2.3. This should avoid calling non existing methods on older versions.