Fixes nilClass bug for Sinatra apps without views