Prevent crash on views with no controller