window: Set custom frame extents to 0 if we don't have any

This is just a quick code cleanup.
window-wayland: Correct the buffer rect for frame extents