Adding checks for the rake task to prevent levels that do not have relev...

...ant fields in.