Try with the battery in. You are correct, error 507 simply means no Operating System.
Download and install Desltop Manager to your PC, then plug in your BB to the USB, connected to your REAR PC USB port (not a hub or monitor port) and open Desktop Manager. You should be prompted to load the OS.
What to do next if Jl Cmder will not connect and wipe - BlackBerryFAQ