Fix "before first heading" error when running outline-cycle.

Thanks to Michal Sojka for this fix to `outline-magic.el', that fixes the same
bug in `outshine.el` too.