Improve check for hidden navigationbar

Thanks @mRs- for the implementation in #119 :beers: