Fix compatibility with Rouncube 1.2 (#4819)
The code now supports both older and newer Roundcube versions.