Fixed #4999 (Crash with simple code snipped in rev ab30fa3)