It does seem like on the current GM version buffer_[get|set]_surface functions are once again broken on WebGL so it works only with WebGL disabled (Global Game Settings - HTML5 - Graphics)
Not sure if there's a good workaround tbh