Test for #1446: ceylon new generates wrong code

Closes #1446.
Fix potential NPEs in tool tests

Five occurrences of

    assertTrue(model.isPorcelain());
    assertNotNull(model);

where the assertNotNull needs to be before the assertTrue to be useful.
Merge pull request #1627 from lucaswerkmeister/ceylonNewTestCompiles_1446

Test that 'ceylon new' compiles, fix potential NPE