Ensure the correct action buttons are displayed when viewing binary files

In !64839 (merged) we added the ability to use the legacy (HAML) viewers.

However, when viewing certain files (e.g. binary files) the action buttons should show/hide accordingly.

Before (incorrect) After (correct)
Screenshot_2021-06-29_at_14.12.05 Screenshot_2021-06-29_at_14.12.19