Fixes call to e()
Makes sure HTTP headers are not already sent
Build arguments of route in CLI mode too